package wiki.xsx.task;

import wiki.xsx.config.Target;

/**
 * @Descript
 * @Author xsx
 * @Date 2017/11/16
 */
public class Task {

//    public static void start(Config config){
//        init(config);
//
//    }
//
//    private static void init(Config config){
//        List<DatabaseService> targetServices = new ArrayList<>();
//        DatabaseService dbService = DatabaseAdaptor.getServiceInstance(config.getDataSource());
//        for (Database targetDatabase : config.getTargetDataSources()){
//            DatabaseService targetService = DatabaseAdaptor.getServiceInstance(targetDatabase);
//            targetServices.add(targetService);
//        }
//        List<String> tableNames = dbService.getAllTableNames();
//        for (String tableName : tableNames){
//            String tableDefine = dbService.queryTableDefine(tableName);
////            System.out.println("************************************************************************");
////            System.out.println(tableDefine);
////            System.out.println("************************************************************************");
//        }
//
//
//    }
    public void start(Target target){

    }
}
